# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ircii
pkgver=20210314
pkgrel=4
pkgdesc="Universal IRC for Unix systems"
url="http://www.eterna.com.au/ircii/"
arch="all"
license="BSD-3-Clause"
makedepends="ncurses-dev openssl-dev>3"
subpackages="$pkgname-doc"
source="http://ircii.warped.com/ircii-$pkgver.tar.bz2"

# secfixes:
#   20210314-r0:
#     - CVE-2021-29376

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-default-server=irc.oftc.net
	make
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="3dc3a4ddb000133907edb9b867ae7cb0b36488c875f5d4f56e70d7263cf042da6c429f60a8ed6cced89bca077aec42c9d992ea6b56b2ed8b4e91f125eeced310  ircii-20210314.tar.bz2"
